rombios: remove packed attribute for pushad_regs_t
authorWei Liu <wei.liu2@citrix.com>
Tue, 28 Aug 2018 13:56:38 +0000 (14:56 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 28 Aug 2018 14:14:56 +0000 (15:14 +0100)
commit9df4c648d79f32946b65d5795c172a91d7d71cfe
treeb5d8003cdb43e803ee8678a1f00b5a5357f7e817
parent674f9f71095e5d2e539165dddf8f52bbcbf485d7
rombios: remove packed attribute for pushad_regs_t

The structure already has explicitly padding.

Removing the attribute silences a clang 6 warning:

tcgbios.c:1519:34: error: taking address of packed member 'u' of class or structure 'pushad_regs_t' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
                                                  ®s->u.r32.edx);
                                                   ^~~~~~~~~~~~~~~

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tools/firmware/rombios/32bit/rombios_compat.h